package kr.hkit.powerjava.chther24.work2;

import java.util.Scanner;

import kr.hkit.powerjava.chther24.work2.dao.DerpartmentDao;
import kr.hkit.powerjava.chther24.work2.dao.StudentDao;
import kr.hkit.powerjava.chther24.work2.service.ServiceDerpartment;
import kr.hkit.powerjava.chther24.work2.service.ServiveStudent;

public class ERP {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		boolean flag = true;
		while (flag) {
			System.out.println("1. 학생정보 2. 부서정보 3. 종료");
			switch (sc.nextInt()) {
				case 1:
					new ServiveStudent(new StudentDao(), sc);
					break;
				case 2:
					new ServiceDerpartment(new DerpartmentDao(), sc);
					break;
				default:
					flag = false;
			}
		}
		sc.close();
	}
}
